﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace MyRabbit.EntityFrameWorkCore.Migrations
{
    public partial class add : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ElseId",
                table: "ImgInfos");

            migrationBuilder.AddColumn<int>(
                name: "AccessoriesId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "AdditiveId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "BreedId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "FarmEnterpriseId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ImmunityId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "MachiningEnterpriseId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "MachiningId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "MaterialId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "PackeMaterialId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "SlaughteEnterpriseId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "SlaughteId",
                table: "ImgInfos",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "TheRestId",
                table: "ImgInfos",
                type: "int",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AccessoriesId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "AdditiveId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "BreedId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "FarmEnterpriseId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "ImmunityId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "MachiningEnterpriseId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "MachiningId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "MaterialId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "PackeMaterialId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "SlaughteEnterpriseId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "SlaughteId",
                table: "ImgInfos");

            migrationBuilder.DropColumn(
                name: "TheRestId",
                table: "ImgInfos");

            migrationBuilder.AddColumn<int>(
                name: "ElseId",
                table: "ImgInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }
    }
}
